import { defineStore } from 'pinia';
import { fetchProcessorTypes } from '@/api/flow';
export const useProcessorTypesStore = defineStore('processorTypes', {
  state: () => ({
    types: []
  }),
  actions: {
    async getTypes() {
      try {
        this.types = await fetchProcessorTypes();
      } catch (error) {
        console.warn(error);
      }
    }
  }
});
